<extend name="layout/index"/>
<block name="content">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>banner列表</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link"  href="{:url('banner/edit',array('id'=>0))}">新增banner
                            <i class="fa fa-chevron-up"></i>
                        </a>
                      <!--  <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="table_basic.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li>
                                <a href="table_basic.html#">选项1</a>
                            </li>
                            <li>
                                <a href="table_basic.html#">选项2</a>
                            </li>
                        </ul>-->
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
               <!--     <div class="row">
                        <div class="col-sm-3">
                            <div class="input-group">
                                <input type="text" placeholder="请输入关键词" class="input-sm form-control">
                                <span class="input-group-btn">
                                        <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                            </div>
                        </div>
                    </div>-->
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>标题</th>
                                <th>图片</th>
                                <th>url</th>
                                <th>顺序</th>
                                <th>更新时间</th>
                                <th>显示状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="list" id="vo">
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.title}</td>
                                <td>{$vo.image}</td>
                                <td>{$vo.url}</td>
                                <td>{$vo.sort}</td>
                                <td>{$vo.create_time|date="Y-m-d H:i:s"}</td>
                                <td><eq name="vo.status" value="1">显示<else/>隐藏</eq></td>
                                <td data-field="11" data-key="1-0-11" data-off="true" class="layui-table-col-special">
                                    <div class="layui-table-cell laytable-cell-1-0-11">
                                        <a  href="{:url('banner/edit',array('id'=>$vo.id))}" class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                                        <a class="layui-btn layui-btn-danger layui-btn-xs" onclick="del('{$vo.id}','{:url('banner/banner_del')}')" lay-event="del">删除</a>
                                    </div>
                                </td>
                            </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>
                    <div>{$list->render()|raw}</div>
                </div>
            </div>
        </div>

    </div>
</div>
</block>
<block name="js">
    <script src="/static/admin/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/static/admin/js/content.min-v=1.0.0.js"></script>
    <script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>
    <script src="/static/admin/js/demo/peity-demo.min.js"></script>
    <script>
        $(document).ready(function () {
            $(".i-checks").iCheck({checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green",})
        });
    </script>
</block>

